import org.junit.Test;
import org.springframework.util.StopWatch;

import java.util.Random;

public class Aa {
    public static void main(String[] args) {
        while (true) {
            System.out.println(new Random().nextInt(77778888));
        }
    }

    @Test
    public void testStopWatch() throws InterruptedException {
        StopWatch sw = new StopWatch("test");
        for (int i = 0; i < 10; i++) {
            sw.start("row: " + i);
            Thread.sleep(500);
            sw.stop();
        }
        System.out.println(sw.prettyPrint());


    }
}
